package gdma.hqdes.bean;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author wangyue
 * @Version 3.0
 * @Date 2024-08-28
 */

@Data
public class Article implements Serializable {

    @ApiModelProperty("id")
    @TableId
    Long id;

    @ApiModelProperty("模板id")
    Integer templateId;

    @ApiModelProperty("名称")
    String name;

    @ApiModelProperty("描述")
    String description;

    @ApiModelProperty("项目Id")
    Long projectId;

    @ApiModelProperty("单位id")
    Long unitId;

    @ApiModelProperty("下载路径")
    String downloadPath;

    @ApiModelProperty("创建者Id")
    Long creatorId;

    @ApiModelProperty("创建时间")
    Date createdTime;

    @ApiModelProperty("更新时间")
    Date updatedTime;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty("修订者Id")
    Long reviserId;

    @TableField(updateStrategy = FieldStrategy.IGNORED)
    @ApiModelProperty("修订时间")
    Date revisedTime;


    @TableField(exist = false)
    HqdProject project;

    @TableField(exist = false)
    Unit unit;

}
